if (typeof umams == "undefined") {
	umams = {
			"admin" : {},
			"home" : {}
	};
}

if (typeof String.prototype.trim == "undefined"){
	String.prototype.trim = function() {
		return this.replace(/^\s+|\s+$/gi, "");
	};
}

jQuery.handleError = function( s, xhr, status, e ) 		{
	// If a local callback was specified, fire it
			if ( s.error ) {
				s.error.call( s.context || s, xhr, status, e );
			}

			// Fire the global callback
			if ( s.global ) {
				(s.context ? jQuery(s.context) : jQuery.event).trigger( "ajaxError", [xhr, s, e] );
			}
		};